package com.ruoyi.lowcode.database;

import com.ruoyi.lowcode.domain.LcDatabaseSource;
import com.ruoyi.lowcode.domain.bo.LcDatabaseSourceBo;
import com.ruoyi.lowcode.domain.vo.LcDatabaseSourceVo;

import java.util.List;
import java.util.Map;

public interface SourceFactory {

    void connection(LcDatabaseSourceBo bo) throws ClassNotFoundException;

    List<Map<String, Object>> selectList(LcDatabaseSourceVo databaseSource, String sql) throws ClassNotFoundException;

    int update(LcDatabaseSourceVo databaseSource, String sql) throws ClassNotFoundException;

}
